/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "numdatos")
@NamedQueries({@NamedQuery(name = "Numdatos.findByIdnumDatos", query = "SELECT n FROM Numdatos n WHERE n.idnumDatos = :idnumDatos"), @NamedQuery(name = "Numdatos.findByRefnumDatos", query = "SELECT n FROM Numdatos n WHERE n.refnumDatos = :refnumDatos"), @NamedQuery(name = "Numdatos.findByPobnumDatos", query = "SELECT n FROM Numdatos n WHERE n.pobnumDatos = :pobnumDatos")})
public class Numdatos implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id_numDatos", nullable = false)
    private Integer idnumDatos;
    @Column(name = "ref_numDatos")
    private String refnumDatos;
    @Column(name = "pob_numDatos")
    private String pobnumDatos;

    public Numdatos() {
    }

    public Numdatos(Integer idnumDatos) {
        this.idnumDatos = idnumDatos;
    }

    public Integer getIdnumDatos() {
        return idnumDatos;
    }

    public void setIdnumDatos(Integer idnumDatos) {
        this.idnumDatos = idnumDatos;
    }

    public String getRefnumDatos() {
        return refnumDatos;
    }

    public void setRefnumDatos(String refnumDatos) {
        this.refnumDatos = refnumDatos;
    }

    public String getPobnumDatos() {
        return pobnumDatos;
    }

    public void setPobnumDatos(String pobnumDatos) {
        this.pobnumDatos = pobnumDatos;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idnumDatos != null ? idnumDatos.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Numdatos)) {
            return false;
        }
        Numdatos other = (Numdatos) object;
        if ((this.idnumDatos == null && other.idnumDatos != null) || (this.idnumDatos != null && !this.idnumDatos.equals(other.idnumDatos))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Numdatos[idnumDatos=" + idnumDatos + "]";
    }

}
